var mongoose = require('mongoose')
mongoose.connect('mongodb://localhost/nodeuser')
var mongoose =require('mongoose')
var Scheam=mongoose.Schema
var profileSchema=new Scheam({
    // 收支类型 收支描述 收入 支出 现金 备注
    type:{type:String},
    describe:{type:String},
    income:{type:String,required:true},
    expend:{type:String,required:true},
    cash:{type:String,required:true},
    remark:{type:String},
    date:{type:Date,default:Date.now}

})
module.exports=mongoose.model("Profile",profileSchema)